﻿//using System;
//using System.Collections.Generic;
//using System.Linq;
//using System.Web;
//using System.Text;
//using Commons;
//using SqlSugar;

//namespace Entity.Project
//{
//    /// <summary>
//    /// 牌局记录
//    /// </summary>    
//    [YDisplay("牌局记录")]
//    [SugarTable("project_game_record")]
//    public class GameRecord:BaseModel
//    {
//        /// <summary>
//        /// 用来识别同一场对局
//        /// </summary>
//        public string RecordKey { get; set; }
//        /// <summary>
//        /// 房间
//        /// </summary>
//        public string RoomKey { get; set; }

//        public int UserId { get; set; }

//        [SugarColumn(ColumnName = "communityCards")]
//        public string _CommunityCards { get => CommunityCards.ToJsonString(); set => CommunityCards = value.JsonToModel<List<PlayingCard>>(); }
//        /// <summary>
//        /// 公共牌
//        /// </summary>
//        [SugarColumn(IsIgnore = true)]
//        public List<PlayingCard> CommunityCards { get; set; }

//        [SugarColumn(ColumnName = "playerCards")]
//        public string _PlayerCards { get=>PlayerCards.ToJsonString(); set=> PlayerCards = value.JsonToModel<List<PlayingCard>>(); }
//        /// <summary>
//        /// 手牌
//        /// </summary>
//        [SugarColumn(IsIgnore = true)]
//        public List<PlayingCard> PlayerCards { get; set; }

//        [SugarColumn(ColumnName = "wands")]
//        public string _Wands { get => Wands.ToJsonString(); set => Wands = value.JsonToModel<Wands>(); }
//        /// <summary>
//        /// 最佳牌组
//        /// </summary>
//        [SugarColumn(IsIgnore = true)]
//        public Wands Wands { get; set; }
//        /// <summary>
//        /// 筹码情况
//        /// </summary>
//        public long Jetton { get; set; }
//        public bool IsWin { get; set; }
//        public bool isFold { get; set; }
//        public DateTime StartTime { get; set; }
//        public DateTime EndTime { get; set; }
//    }
//}
